package cn.sdormitory.exam.dao;

import cn.sdormitory.exam.entity.Exam;
import cn.sdormitory.exam.vo.*;
import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;

import java.util.List;

/**
 * @author : yy
 * @date: 2024/12/28 9:21
 * @description:
 */
@Mapper
public interface ExamDao extends BaseMapper<Exam> {
    List<Exam> getList(@Param("examName") String examName);
    List<EditExamVo> getEditExam(Integer id);
    List<ExamClassVo> getExamClassList(Integer examId);

    List<ExamCourseTabVo> getExamCourseTab(@Param("examId") Integer examId,
                                           @Param("courseType") String courseType);
    List<ExamCourseScoreVo> getExamCourseScore(@Param("classId") Integer classId,
                                               @Param("examId") Integer examId,
                                               @Param("courseId") Integer courseId,
                                               @Param("studentName") String studentName,
                                               @Param("examType") String examType);
    List<ExamTotalScoreVo> getExamTotalScore(@Param("classId") Integer classId,
                                             @Param("examId") Integer examId,
                                             @Param("studentName") String studentName);





    //app
    List<Exam> getAppExamByStudentId(Integer studentId);
    List<AppStudentExamDetailVo> getAppExamDetail(@Param("examId") Integer examId,
                                                  @Param("studentId") Integer studentId);
    List<Exam> getAppClassExamByClassIds(@Param("classIds") List<Long> classIds);




}
